package com.example.coolweather.android;

import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

import com.example.coolweather.android.databinding.ActivityMainBinding;

public class MainActivity extends AppCompatActivity {


    ActivityMainBinding binding;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        binding=ActivityMainBinding.inflate(getLayoutInflater());
        setContentView(binding.getRoot());


//        HttpUtil.sendOkHttpRequest("http://guolin.tech/api/china", new Callback() {
//            @Override
//            public void onFailure(@NotNull Call call, @NotNull IOException e) {
////                Log.d("Test", "onFailure: ");
//            }
//
//            @Override
//            public void onResponse(@NotNull Call call, @NotNull Response response) throws IOException {
////分装快捷键ctrl+alt+v
//                String result = response.body().string();
//                Log.d("Test","onResponse:"+ result);
//                boolean flag = Utility.handleProvinceResp(result);
//                Log.d("Test","onResponse save:"+ flag);
//            }
//        });
    }
}
